package cn.xiaohuodui.dao;

import cn.xiaohuodui.form.PageForm;
import cn.xiaohuodui.model.Brand;
import cn.xiaohuodui.model.Sku;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface BrandMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Brand record);

    int insertSelective(Brand record);

    Brand selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Brand record);

    int updateByPrimaryKey(Brand record);

    List<Brand> query(Map map);

    int queryTotalCount();

    List<Brand> getBrandsIndex();


    /**
     * 后台过滤查询预约订单
     *
     * @param qm
     * @return
     */
    int brandBackCount(Map qm);

    List<Brand> brandBackQuery(Map qm);
}